Optimal. Leaf size=24 \[ \frac{a \tanh ^{-1}(\sin (c+d x))}{d}+\frac{b \sec (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0151662, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {3486, 3770} \[ \frac{a \tanh ^{-1}(\sin (c+d x))}{d}+\frac{b \sec (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3486
Rule 3770
Rubi steps
\begin{align*} \int \sec (c+d x) (a+b \tan (c+d x)) \, dx &=\frac{b \sec (c+d x)}{d}+a \int \sec (c+d x) \, dx\\ &=\frac{a \tanh ^{-1}(\sin (c+d x))}{d}+\frac{b \sec (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.0091772, size = 24, normalized size = 1. \[ \frac{a \tanh ^{-1}(\sin (c+d x))}{d}+\frac{b \sec (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.011, size = 34, normalized size = 1.4 \begin{align*}{\frac{b}{d\cos \left ( dx+c \right ) }}+{\frac{a\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.3044, size = 42, normalized size = 1.75 \begin{align*} \frac{a \log \left (\sec \left (d x + c\right ) + \tan \left (d x + c\right )\right ) + \frac{b}{\cos \left (d x + c\right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.8153, size = 144, normalized size = 6. \begin{align*} \frac{a \cos \left (d x + c\right ) \log \left (\sin \left (d x + c\right ) + 1\right ) - a \cos \left (d x + c\right ) \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, b}{2 \, d \cos \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.8325, size = 37, normalized size = 1.54 \begin{align*} \begin{cases} \frac{a \log{\left (\tan{\left (c + d x \right )} + \sec{\left (c + d x \right )} \right )} + b \sec{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\x \left (a + b \tan{\left (c \right )}\right ) \sec{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.27402, size = 73, normalized size = 3.04 \begin{align*} \frac{a \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right ) - a \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right ) - \frac{2 \, b}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]